package com.ujs.edu.demo.controller;

import com.ujs.edu.demo.config.NeedLogin;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class MainController {

    @NeedLogin
    @RequestMapping(path = "/main")
    public ModelAndView tomain(){
        ModelAndView view=new ModelAndView();
        view.setViewName("main");
        return view;
    }
}
